<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\widgets\LinkPager;

$this->title = '我的消息';
$this->params['breadcrumbs'][] = $this->title;
?>
			<section class="news_list">
				
				<div class="wyhlist">
					<ul>
						<?php foreach ($list as $key => $val) {?>
						<li><a href="<?= yii\helpers\Url::to(['member/messagepage','id'=>$val->id]);?>">
							<p class="title"><?= mb_substr(strip_tags($val->title),0,22,'utf-8'); ?><?php if(strlen($val->title) > 67) { echo '...'; } ?></p>
							
						    </a>
						</li>
						<?php } ?>
					</ul>
				</div>	
				
				<div class="comepage">
					<ul>
						<a <?php if($page>1){?>  href="<?= yii\helpers\Url::to(['member/message']);?>?page=<?= $page-1?>&per-page=<?= $size?>" <?php }else{ ?> <?php }?>><li class="prvone">上一页</li></a>
						<li><?php if(isset($page)){?> <?= $page?> <?php }else{ ?> 1<?php }?>/<?= $cpage?></li>

						<a <?php if($page<$cpage){?>  href="<?= yii\helpers\Url::to(['member/message']);?>?page=<?= $page+1?>&per-page=<?= $size?>" <?php }else{ ?> <?php }?>><li class="nextone on">下一页</li></a>
					</ul>
				</div>
			</section>



			<footer>
				<div class="footnav">
					<ul>
						<li><a href="<?= yii\helpers\Url::to(['content/index', 'id' => 8])?>">关于我们</a> &nbsp; |</li>
						<li><a href="<?= yii\helpers\Url::to(['content/index', 'id' => 30])?>">联系我们</a> &nbsp; |</li>
						<li><a href="<?= yii\helpers\Url::to(['content/index', 'id' => 34])?>">帮助中心</a> &nbsp; |</li>
						<li><a href="">网站地图</a></li>
					</ul>
				</div>
				<div class="right">© 北京市丰台区餐饮住宿服务行业协会 版权所有</div>
			</footer>
		</div>
		

